package entity;

import java.util.Observable;

import entity.state.user.UserState;

public class User extends Observable{
	private String vorName;
	private String nachName;
	private int userId;
	private UserState userState;
	
	public void setVorName(String vorName) {
		this.vorName = vorName;
		setChanged();
		notifyObservers();
	}
	public String getVorName() {
		return vorName;
	}
	/**
	 * @param nachName the nachName to set
	 */
	public void setNachName(String nachName) {
		this.nachName = nachName;
		setChanged();
		notifyObservers();
	}
	/**
	 * @return the nachName
	 */
	public String getNachName() {
		return nachName;
	}
	/**
	 * @param userId the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
		setChanged();
		notifyObservers();
	}
	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}
	
	   /**
     * @return the state
     */
    public UserState getState() {
        return userState;
    }

    /**
     * @param state the state to set
     */
    public void setUserState(UserState userState) {
        this.userState = userState;
        setChanged();
        notifyObservers();
    }

	
}
